package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Advert;
import java.util.List;

/**
 * @author Shine
 */
public interface AdvertService {

    /**
     * @param address
     * @param adName
     * @param picture
     * @return 分页
     */
    public Page<Advert> queryAll();

    /**
     * @param address
     * @param adName
     * @param picture
     * @return
     */
    public Advert save(Advert advert);

    /**
     * @param id
     * @return 根据主键查找
     */
    public Advert findById(Long id);

    /**
     * 根据主键更新广告信息
     *
     * @param advert
     * @return 更新的行数
     */
    public int updateByPrimaryKey(Advert record);

    public void delete(Advert advert);

    /**
     * 查询所有实体
     *
     * @param advert
     * @return List<Advert>
     */
    public List<Advert> findAll();

}
